package com.cqhfan.userservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cqhfan.core.domain.dto.PageDTO;
import com.cqhfan.core.domain.query.PageQuery;
import com.cqhfan.pojo.user.po.User;
import com.cqhfan.pojo.user.vo.UserFriendVO;
import com.cqhfan.pojo.user.vo.UserProfileVO;

/**
 * @author 眭传洪
 * @create 2025-07-21 22:02
 */
public interface UserService extends IService<User> {

    User getByUserName(String userName);

    User getByUserPhone(String phone);

    UserProfileVO profile(Long userId);

    void updateUserInfo(User user);

    Long saveUser(User user);

    User getByUserId(Long userId);

    PageDTO<UserFriendVO> pageFriend(PageQuery query);

}
